export const DashboardStore = {
  namespaced: true,
  state: {
    zoomStatus: "out",
    taskCol: 7,
    calendarCol: 5,
  },
  mutations: {
    // 切换到缩小状态
    switchToZoomOut(state: {
      zoomStatus: string;
      taskCol: number;
      calendarCol: number;
    }) {
      state.zoomStatus = "out";
      state.taskCol = 7;
      state.calendarCol = 5;
    },

    // 切换到放大状态
    switchToZoomIn(state: {
      zoomStatus: string;
      taskCol: number;
      calendarCol: number;
    }) {
      state.zoomStatus = "in";
      state.taskCol = 5;
      state.calendarCol = 7;
    },

    // 切换到全屏状态
    switchToFullscreen(state: {
      zoomStatus: string;
      taskCol: number;
      calendarCol: number;
    }) {
      state.zoomStatus = "fullscreen";
      state.taskCol = 0;
      state.calendarCol = 12;
    },
  },
};
